package com.yuhanginfo.modules.sys.entity;

import org.hibernate.validator.constraints.Length;

import com.yuhanginfo.common.persistence.DataEntity;

/**
 * 门店管理Entity
 * @author yangs
 * @version 2017-09-11
 */
public class Store extends DataEntity<Store> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 门店号
	private String cnName;		// 门店名称
	private String type;		// 门店类型：1总部门店，2分公司门店，3第三方门店
	private String classify;		// 门店区域
	private String master;		// 门店联系人
	private String masterPhone;		// 门店联系人手机号
	private String status;		// 门店状态：0失效，1有效
	private String address;		// 门店详细地址
	private String aname;
	private String userId;
	private String name;
	private String sysUserId;
	
	public Store() {
		super();
	}

	public Store(String id){
		super(id);
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}


	
	public String getSysUserId() {
		return sysUserId;
	}

	public void setSysUserId(String sysUserId) {
		this.sysUserId = sysUserId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getAname() {
		return aname;
	}

	public void setAname(String aname) {
		this.aname = aname;
	}



	@Length(min=0, max=30, message="门店号长度必须介于 0 和 30 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=30, message="门店名称长度必须介于 0 和 30 之间")
	public String getCnName() {
		return cnName;
	}

	public void setCnName(String cnName) {
		this.cnName = cnName;
	}
	
	@Length(min=0, max=11, message="门店类型：1总部门店，2分公司门店，3第三方门店长度必须介于 0 和 11 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	//@Length(min=0, max=11, message="门店区域长度必须介于 0 和 11 之间")
	public String getClassify() {
		return classify;
	}

	public void setClassify(String classify) {
		this.classify = classify;
	}
	
	@Length(min=0, max=50, message="门店联系人长度必须介于 0 和 50 之间")
	public String getMaster() {
		return master;
	}

	public void setMaster(String master) {
		this.master = master;
	}
	
	@Length(min=0, max=50, message="门店联系人手机号长度必须介于 0 和 50 之间")
	public String getMasterPhone() {
		return masterPhone;
	}

	public void setMasterPhone(String masterPhone) {
		this.masterPhone = masterPhone;
	}
	
	@Length(min=0, max=50, message="门店状态：0失效，1有效长度必须介于 0 和 50 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=255, message="门店详细地址长度必须介于 0 和 255 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	
}